package com.lbw.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "order") // 无需@RefreshScope即可实现自动刷新
@Data
public class OrderProperties {

    // 订单过期时间
    String timeOut;

    //订单自动确认时间
    String autoConfirm;

    //数据库连接地址
    String dbUrl;
}
